/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.dao;

import java.util.Date;
import java.util.List;

import com.mobaas.devops.model.VcsDayStat;
import com.mobaas.devops.model.VcsMonthStat;

/**
 * 
 * @author billy zhang
 * 
 */
public interface VcsStatDao {

	List<String> selectVcsUserList(Date beginDate,Date endDate);
	
	List<VcsDayStat> selectDayStatList(Date beginDate,Date endDate);

	List<VcsDayStat> selectDayStatListByUser(String user,Date beginDate,Date endDate);
	
	List<VcsDayStat> selectDayStatListForDayMax(Date beginDate,Date endDate);

	List<VcsMonthStat> selectMonthStatList(int limit);
	
	void insertDayStat(VcsDayStat stat);

	int updateDayStat(VcsDayStat stat);
	
	VcsDayStat selectDayStatByUserAndDate(String user, Date date);

	VcsMonthStat selectMonthStatByUserAndMonth(String user, String month);
	
	void insertMonthStat(VcsMonthStat stats);

	int updateMonthStat(VcsMonthStat stats);

	List<VcsDayStat> selectDayStatListByDate(Date date);

	List<VcsMonthStat> selectMonthStatListByMonth(String month);
	
}